import 'package:base/main.dart';
import 'package:flutter/material.dart';
import 'package:get_storage/get_storage.dart';
import 'package:jyapp/app_init.dart';
import 'package:module_business/route/AppRouter.dart';

Future<void> main() async {
  await GetStorage.init();
  ScreenUtil.init(width: 390, height: 844);
  AppInit.init();
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    final appRouter = AppRouter();
    return MaterialApp.router(
      routerConfig: appRouter.config(),
      title: 'JYApp Demo',
    );
  }
}
